#include <iostream.h> // Zadanie 5.2
#include <iomanip.h>
#include <conio.h>

void pole_prostokata() // deklaracja i definicja funkcji pole_prostokata()
{
float a, b, pole;

cout << "Program oblicza pole prostokata." << endl;
cout << "Podaj bok a." << endl;
cin >> a;
cout << "Podaj bok b." << endl;
cin >> b;
pole = a*b;
cout << fixed << setprecision(2);
cout << "Pole prostokata o boku a = " << a << " i boku b = " << b;
cout << " wynosi " << pole << "." << endl;
}

main()
{
pole_prostokata(); //wywolanie funkcji pole_prostokata()

getch(); // czeka na nacisniecie dowolnego klawisza
}
